package com.next

class Subject
{
    String code
    String name
    static constraints = {
        code maxSize: 16
        name maxSize: 16
    }

    String toString()
    {
        "${code}-${name}"
    }

}
